package coganh.Activity;

import splash.SplashView;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;

public class Splash extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(new SplashView(this, null));
	}

	@Override
	public boolean onTouchEvent(MotionEvent event) {
		if (event.getAction() == MotionEvent.ACTION_DOWN) {
			changeActivity();
		}
		return super.onTouchEvent(event);
	}

	public void changeActivity() {
		Intent mIntent = new Intent();
		mIntent.setClass(this, MainMenu.class);
		startActivity(mIntent);
	}

}
